<div class="widget-box">
<div class="widget-title">
    <span class="icon"><i class="icon-plus"></i></span>
    <h5>Inmueble</h5>
</div>
<div class="widget-content">
<?php
$atrFrm = array('class' => 'form-horizontal', 'id' => 'inmu-nuevo');
$atr_lbl = array( 'class' => 'control-label');
$atrInpDatePicker = array('id' => 'fecha_ingreso','type' => 'text','name' =>'fecha_ingreso','readonly' => 'readonly','value' => $hoy);
$atrInpTit = array('class' => 'input-xxlarge','type' => 'text','name' =>'titulo_inmu','value' => set_value('titulo_inmu'));
$atrInpDesc = array('class' => 'input-xxlarge','type' => 'text','name' =>'desc_inmu','value' => set_value('desc_inmu'));
$atrInpCode = array('id' => 'codigo_inmu','type' => 'text','name' =>'codigo_inmu','readonly' => 'readonly','value' => '' );
$atrInpDire = array('class' => 'input-xxlarge','type' => 'text','name' =>'dire_inmu','value' => set_value('dire_inmu'),);
$atrInpsupT = array('class' => 'input-mini','type' => 'text','name' =>'suptotal_inmu','value' => set_value('suptotal_inmu'));
$atrInpSupC = array('class' => 'input-mini','type' => 'text','name' =>'supcubierta_inmu','value' => set_value('supcubierta_inmu'));
$atrInpValor = array('class' => 'input-small','type' => 'text','name' =>'valor_inmu','value' => set_value('valor_inmu'));
$atrInpAmbT= array('class' => 'input-mini','type' => 'text','name' =>'total_amb','value' => set_value('total_amb'));
$atrInpEstadoAdv = array('class' => 'input-small','type' => 'hidden','name' =>'id_estadv','value' => $id_estadv);
$atrBtn = array('class' => 'btn btn-inverse','type' => 'submit');
echo form_open('inmueble/insert_inmu',$atrFrm);
echo form_fieldset('Cargar Datos Inmueble.');
?>
<p class="muted">Datos de la publicación</p>
    <div class="control-group">
        <?php echo form_label('Código web','',$atr_lbl);?>
        <div class="controls">
             <?php echo form_input($atrInpCode); ?>
             <?php echo form_error('codigo_inmu'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Fecha de ingreso','',$atr_lbl);?>
        <div class="controls">
             <?php echo form_input($atrInpDatePicker); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Tipo de operación','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="id_tope" id="tipo_operacion">
                <option value="0" selected>Seleccionar operación...</option>
                  <?php foreach($tipo_operacion as $fila){ ?>
                  <option value="<?php echo $fila->id_tope ?>"><?php echo $fila->desc_tope ?></option>
                  <?php }?>        
            </select>
            <?php echo form_error('tipo_operacion'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Tipo de inmueble','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="id_tinmue" id="id_tinmue">
                <option value="">Tipo de inmueble...</option>
                  <?php foreach($tipo_inmueble as $fila){ ?>
                  <option value="<?php echo $fila->id_tinmue ?>"<?php echo set_select('tipo_inmueble',$fila->id_tinmue); ?>><?php echo $fila->desc_tinmue ?></option>
                  <?php }?>        
            </select>
            <?php echo form_error('tipo_inmueble'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Título de la publicación','',$atr_lbl);?>
        <div class="controls">
            <?php echo form_input($atrInpTit); ?>
            <?php echo form_error('titulo_inmu'); ?>
        </div>
    </div>
    <div class="control-group">
          <?php echo form_label('Descripción','',$atr_lbl);?>
        <div class="controls">
            <?php echo form_textarea($atrInpDesc); ?>
            <?php echo form_error('desc_inmu'); ?>
        </div>
    </div>
<p class="muted">Datos de Ubicación</p>
    <div class="control-group">
          <?php echo form_label('Dirección','',$atr_lbl);?>
        <div class="controls">
            <?php echo form_input($atrInpDire); ?>
            <?php echo form_error('dire_inmu'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Pais','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="pais" id="pais">
                <option value="">Seleccionar pais...</option>
                  <?php foreach($pais as $fila){ ?>
                  <option value="<?php echo $fila->id_pais ?>"><?php echo $fila->nomb_pais ?></option>
                  <?php }?>        
            </select>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Provincia','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="provincia" id="provincia">
                <option value=""></option>
            </select>
            <?php echo form_error('provincia'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Localidad','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="localidad" id="localidad">
                <option value=""></option>
            </select>
            <?php echo form_error('localidad'); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Zona','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="id_zona" id="zona">
                <option value=""></option>
            </select>
            <?php echo form_error('id_zona'); ?>
        </div>
    </div>
<p class="muted">Datos del inmueble</p>
<ul class="inline">
    <li>
        <div class="control-group">
            <?php echo form_label('Superficie Total(m2)','',$atr_lbl);?>
            <div class="controls">
                <?php echo form_input($atrInpsupT); ?>
                <?php echo form_error('suptotal_inmu'); ?>
            </div>
        </div>
    </li>
    <li>
        <div class="control-group">
            <?php echo form_label('Superficie Cubierta(m2)','',$atr_lbl);?>
            <div class="controls">
                <?php echo form_input($atrInpSupC); ?>
                <?php echo form_error('supcubierta_inmu'); ?>
            </div>
        </div>
    </li>
</ul>
<div class="control-group">
    <?php echo form_label('Total de Ambientes','',$atr_lbl);?>
    <div class="controls">
        <?php echo form_input($atrInpAmbT); ?>
        <?php echo form_error('total_amb'); ?>
    </div>
</div>
<div class="control-group">
    <?php echo form_label('Orientación','',$atr_lbl);?>
    <div class="controls">
        <select class="" name="id_orie" id="id_orie">
            <option value="">Seleccionar...</option>
            <?php foreach($orientacion as $fila){ ?>
            <option value="<?php echo $fila->id_orie ?>"<?php echo set_select('id_orie',$fila->id_orie); ?>><?php echo $fila->orie_desc ?></option>
            <?php }?>        
        </select>
        <?php echo form_error('id_orie'); ?>
    </div>
</div>
<div class="control-group">
    <?php echo form_label('Disposición','',$atr_lbl);?>
    <div class="controls">
        <select class="" name="id_dispo" id="id_dispo">
            <option value="" selected>Seleccionar...</option>
            <?php foreach($disposicion as $fila){ ?>
            <option value="<?php echo $fila->id_dispo ?>"<?php echo set_select('id_dispo',$fila->id_dispo); ?>><?php echo $fila->desc_dispo ?></option>
            <?php }?>        
        </select>
        <?php echo form_error('id_dispo'); ?>
    </div>
</div>
<div class="control-group">
    <?php echo form_label('Luminosidad','',$atr_lbl);?>
    <div class="controls">
        <select class="" name="id_lumi" id="id_lumi">
            <option value="" selected>Seleccionar...</option>
            <?php foreach($luminosidad as $fila){ ?>
            <option value="<?php echo $fila->id_lumi ?>"<?php echo set_select('id_lumi',$fila->id_lumi); ?>><?php echo $fila->desc_lumi ?></option>
            <?php }?>        
        </select>
        <?php echo form_error('id_lumi'); ?>
    </div>
</div>
<div class="control-group">
    <?php echo form_label('Estado del inmueble','',$atr_lbl);?>
    <div class="controls">
        <select class="" name="id_estainmu" id="id_estainmu">
            <option value="" selected>Seleccionar...</option>
            <?php foreach($estado_inmu as $fila){ ?>
            <option value="<?php echo $fila->id_estainmu ?>"<?php echo set_select('id_estainmu',$fila->id_estainmu); ?>><?php echo $fila->desc_estainmu ?></option>
            <?php }?>        
        </select>
        <?php echo form_error('id_estainmu'); ?>
    </div>
</div>
<ul class="inline">
    <li>
    <div class="control-group">
        <?php echo form_label('Moneda','',$atr_lbl);?>
        <div class="controls">
            <select class="" name="id_mone" id="id_mone">
                <option value="">Seleccionar moneda...</option>
                  <?php foreach($moneda as $fila){ ?>
                  <option value="<?php echo $fila->id_mone ?>"<?php echo set_select('id_mone',$fila->id_mone); ?>><?php echo $fila->desc_mone ?></option>
                  <?php }?>        
            </select>
            <?php echo form_error('id_mone'); ?>
        </div>
    </div>        
    </li>    
    <li>
        <div class="control-group">
            <?php echo form_label('Precio','',$atr_lbl);?>
            <div class="controls">
                <?php echo form_input($atrInpValor); ?>
                <?php echo form_error('valor_inmu'); ?>
            </div>
        </div>
    </li>
    <li>
        <?php echo form_input($atrInpEstadoAdv); ?>
    </li>
</ul>
<?php
echo form_button($atrBtn,'Siguiente >>');
echo form_fieldset_close(); 
echo form_close();
?>
</div>
</div>
